<!DOCTYPE html>
<html>
	<head>
		<title>baby</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="./css/style.css" />
		<script type="text/javascript" charset="utf-8" src="./js/phonegap-1.2.0.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/jquery.min.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/utils.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/php.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/common.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/iscroll.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/ScreenShot.js"></script>
		<script type="text/javascript" charset="utf-8" src="./lng/zh-cn.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/data/shop.js"></script>
		<script type="text/javascript" charset="utf-8" src="./js/data/clothes.js"></script>

		<script type="text/javascript">
            var query = window.location.search;
            //alert(query);
            var arr_query = my_parse_str(query);
			//Utils.setCookie("acc_key",'3c09cf3ba3d72c3ce5b692d026c86951');
			//Utils.setCookie("acc_key",'');
			var acc_key = Utils.getCookie("acc_key");
			//accKey = "";
            $(document).ready(function(){
               //alert(11)
            });
			$(document).ready(function(){
                get_user_info();
				if ( acc_key == '' || acc_key == null ) {
					$("#main").load('login.html');
				} else {
					$("#main").load('userinfo.html');
				}
				$("#footer_login_bonus").click( function () {
					$("#main").load('login_bonus.html');
					$("#main").addClass('main_height');
				});
				$("#view_kid_list").click( function () {
					$("#main").load('list_kid.html');
					$("#main").addClass('main_height');
				});
                $('#back').bind('click', function() {
                    $("#main").removeClass('main_height');
                    $("#main").load('userinfo.html');
                });
			});
		</script>
	</head>
	<body>
		<div id="msg_main_div" style="opacity: 0.5; filter:alpha(opacity=10); -moz-opacity:0.5; -khtml-opacity: 0.5; position:absolute; top:0px; left:0px; width:100%; height:100%; background:gray; z-index:999; display:none;"></div>
		<div style="display:none;z-index:1000;position:absolute; color:#990000; top:50%;left:50%;" id="msg_content_div"></div>
		<div id="header" class="hidden_button">
			coin:<span id="header_coin"></span>
			cash:<span id="header_cash"></span>
			<span id="back">返回</span>
			<!--拥有小孩数量:<span id="header_kid_num"></span>-->
		</div>
		<div id="main"></div>
	</body>
</html>
